from random import randint as rand

COUNT=20
UPPLIMI=7
LOWLIMI=1

character=["+","-"]

content=[]
while True:
    first,second=rand(LOWLIMI,UPPLIMI),rand(LOWLIMI,UPPLIMI)
    sign=character[rand(LOWLIMI,UPPLIMI)%2]
    if sign==character[-1] and first<=second:
        pass
    elif "".join([str(det) for det in [first,sign,second]]) in ["".join([str(i) for i in det]) for det in content]:
        pass
    else:
        content.append([first,sign,second])

    if len(content)==COUNT:
        break

print(len(content))

for each in content:
    print("".join([str(det) for det in each])+"=")
